package com.teach;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <pre>
 * TODO : 入口启动
 * ClassName : com.teach.DemoTeachApplication
 * Author : J.L.Zhou
 * Date : 2020-11-05 20:53
 * Version : V1.0
 * Copyright 2020 jlzhou.top Inc. All rights reserved. 
 * Warning: this content is only for internal circulation of the company. It is forbidden to divulge it or use it for other commercial purposes</pre>
 */
@SpringBootApplication
@Controller
@ServletComponentScan
public class DemoTeachApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoTeachApplication.class, args);
	}

	@RequestMapping("/")
	public String doIndex() {
		return "forward:/index.jsp";
	}
}
